useFixture(default)

def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_22'

	if window('Protocol Buffer Editor'):
		select('File_Txt', commonBits.sampleDir() + 'protoStoreSales7.bin')
		click('Edit1')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,0(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,0')
		select_menu('Collapse Tree')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,1(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,1')
		select_menu('Collapse Tree')
		select('LineTreeChild.FileDisplay_JTbl', 'rows:[0,1],columns:[Tree]')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,1')
		select_menu('Copy Record#{s#}')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,3(null)')
		assert_p('LineTreeChild.FileDisplay_JTbl', 'Content', '[[, , 20, Store: 20], [, , 59, Store: 59], [, , 166, Store: 166], [, , 184, Store: 184]]')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,3(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,3')
		select_menu('Paste Record#{s#} Prior')
##		select('LineTreeChild.FileDisplay_JTbl', '')
		assert_p('LineTreeChild.FileDisplay_JTbl', 'Content', '[[, , 20, Store: 20], [, , 59, Store: 59], [, , 166, Store: 166], [, , 20, Store: 20], [, , 59, Store: 59], [, , 184, Store: 184]]')
		select_menu('Utilities>>Compare with Disk')
		assert_p('Table', 'Content', '[[, , , , , , , , , , ], [, Inserted, 381, 20, Store: 20, , , , , , ], [, , , , , , , , , , ], [, Inserted, 382, 170, Department: 170, , , , , , ], [, , , , , , , , , , ], [, Inserted, 383, 63604808, [40118], [1], [4870], [SALE], [4.87], [4.87], [\'\']], [, , , , , , , , , , ], [, Inserted, 384, 1, 4870, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 385, 280, Department: 280, , , , , , ], [, , , , , , , , , , ], [, Inserted, 386, 69684558, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE], [19.0, -19.0, 5.01], [19.0, -19.0, 5.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 387, 69694158, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE], [19.0, -19.0, 5.01], [19.0, -19.0, 5.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 388, 2, 10020, 6, , , , , ], [, , , , , , , , , , ], [, Inserted, 389, 685, Department: 685, , , , , , ], [, , , , , , , , , , ], [, Inserted, 390, 62684671, [40118, 40118], [1, -1], [69990, -69990], [SALE, RETURN], [69.99, -69.99], [69.99, -69.99], [\'\',\' -1\']], [, , , , , , , , , , ], [, Inserted, 391, 0, 0, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 392, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 393, 65674532, [40118], [1], [3590], [SALE], [3.59], [3.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 394, 1, 3590, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 395, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 396, 63674861, [40118], [10], [2700], [SALE], [2.7], [2.7], [\'\']], [, , , , , , , , , , ], [, Inserted, 397, 64634429, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 398, 66624458, [40118], [1], [890], [SALE], [0.89], [0.89], [\'\']], [, , , , , , , , , , ], [, Inserted, 399, 12, 7580, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 400, 63604808, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 401, 69684558, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 402, 69694158, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 403, 65674532, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 404, 63674861, 10, , , , , , ], [, , , , , , , , , , ], [, Inserted, 405, 64634429, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 406, 66624458, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 407, 16, 26060, 13, , , , , ], [, , , , , , , , , , ], [, Inserted, 408, 59, Store: 59, , , , , , ], [, , , , , , , , , , ], [, Inserted, 409, 335, Department: 335, , , , , , ], [, , , , , , , , , , ], [, Inserted, 410, 61664713, [40118, 40118], [1, -1], [17990, -17990], [SALE, RETURN], [17.99, -17.99], [17.99, -17.99], [\'\',\' -1\']], [, , , , , , , , , , ], [, Inserted, 411, 61684613, [40118], [1], [12990], [SALE], [12.99], [12.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 412, 1, 12990, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 413, 410, Department: 410, , , , , , ], [, , , , , , , , , , ], [, Inserted, 414, 68634752, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 415, 1, 8990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 416, 620, Department: 620, , , , , , ], [, , , , , , , , , , ], [, Inserted, 417, 60664659, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 418, 60694698, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 419, 2, 7980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 420, 878, Department: 878, , , , , , ], [, , , , , , , , , , ], [, Inserted, 421, 60614487, [40118], [1], [5950], [SALE], [5.95], [5.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 422, 63644339, [40118], [1], [12650], [SALE], [12.65], [12.65], [\'\']], [, , , , , , , , , , ], [, Inserted, 423, 2, 18600, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 424, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 425, 67674686, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 426, 1, 3990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 427, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 428, 62684217, [40118], [1], [9990], [SALE], [9.99], [9.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 429, 64614401, [40118, 40118], [1, 1], [1990, 1990], [SALE, SALE], [1.99, 1.99], [1.99, 1.99], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 430, 64624770, [40118], [1], [2590], [SALE], [2.59], [2.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 431, 4, 16560, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 432, 61684613, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 433, 68634752, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 434, 60664659, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 435, 60694698, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 436, 60614487, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 437, 63644339, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 438, 67674686, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 439, 62684217, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 440, 64614401, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 441, 64624770, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 442, 11, 69110, 13, , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,0(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,0')
		select_menu('Copy Record#{s#}')
		select('LineTreeChild.FileDisplay_JTbl', 'cell:Tree,5(null)')
		rightclick('LineTreeChild.FileDisplay_JTbl', 'Tree,5')
		select_menu('Paste Record#{s#}')
##		select('LineTreeChild.FileDisplay_JTbl', '')
		assert_p('LineTreeChild.FileDisplay_JTbl', 'Content', '[[, , 20, Store: 20], [, , 59, Store: 59], [, , 166, Store: 166], [, , 20, Store: 20], [, , 59, Store: 59], [, , 184, Store: 184], [, , 20, Store: 20]]')
		select_menu('Utilities>>Compare with Disk')
		assert_p('Table', 'Content', '[[, , , , , , , , , , ], [, Inserted, 381, 20, Store: 20, , , , , , ], [, , , , , , , , , , ], [, Inserted, 382, 170, Department: 170, , , , , , ], [, , , , , , , , , , ], [, Inserted, 383, 63604808, [40118], [1], [4870], [SALE], [4.87], [4.87], [\'\']], [, , , , , , , , , , ], [, Inserted, 384, 1, 4870, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 385, 280, Department: 280, , , , , , ], [, , , , , , , , , , ], [, Inserted, 386, 69684558, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE], [19.0, -19.0, 5.01], [19.0, -19.0, 5.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 387, 69694158, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE], [19.0, -19.0, 5.01], [19.0, -19.0, 5.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 388, 2, 10020, 6, , , , , ], [, , , , , , , , , , ], [, Inserted, 389, 685, Department: 685, , , , , , ], [, , , , , , , , , , ], [, Inserted, 390, 62684671, [40118, 40118], [1, -1], [69990, -69990], [SALE, RETURN], [69.99, -69.99], [69.99, -69.99], [\'\',\' -1\']], [, , , , , , , , , , ], [, Inserted, 391, 0, 0, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 392, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 393, 65674532, [40118], [1], [3590], [SALE], [3.59], [3.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 394, 1, 3590, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 395, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 396, 63674861, [40118], [10], [2700], [SALE], [2.7], [2.7], [\'\']], [, , , , , , , , , , ], [, Inserted, 397, 64634429, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 398, 66624458, [40118], [1], [890], [SALE], [0.89], [0.89], [\'\']], [, , , , , , , , , , ], [, Inserted, 399, 12, 7580, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 400, 63604808, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 401, 69684558, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 402, 69694158, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 403, 65674532, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 404, 63674861, 10, , , , , , ], [, , , , , , , , , , ], [, Inserted, 405, 64634429, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 406, 66624458, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 407, 16, 26060, 13, , , , , ], [, , , , , , , , , , ], [, Inserted, 408, 59, Store: 59, , , , , , ], [, , , , , , , , , , ], [, Inserted, 409, 335, Department: 335, , , , , , ], [, , , , , , , , , , ], [, Inserted, 410, 61664713, [40118, 40118], [1, -1], [17990, -17990], [SALE, RETURN], [17.99, -17.99], [17.99, -17.99], [\'\',\' -1\']], [, , , , , , , , , , ], [, Inserted, 411, 61684613, [40118], [1], [12990], [SALE], [12.99], [12.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 412, 1, 12990, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 413, 410, Department: 410, , , , , , ], [, , , , , , , , , , ], [, Inserted, 414, 68634752, [40118], [1], [8990], [SALE], [8.99], [8.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 415, 1, 8990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 416, 620, Department: 620, , , , , , ], [, , , , , , , , , , ], [, Inserted, 417, 60664659, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 418, 60694698, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 419, 2, 7980, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 420, 878, Department: 878, , , , , , ], [, , , , , , , , , , ], [, Inserted, 421, 60614487, [40118], [1], [5950], [SALE], [5.95], [5.95], [\'\']], [, , , , , , , , , , ], [, Inserted, 422, 63644339, [40118], [1], [12650], [SALE], [12.65], [12.65], [\'\']], [, , , , , , , , , , ], [, Inserted, 423, 2, 18600, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 424, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 425, 67674686, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 426, 1, 3990, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 427, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 428, 62684217, [40118], [1], [9990], [SALE], [9.99], [9.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 429, 64614401, [40118, 40118], [1, 1], [1990, 1990], [SALE, SALE], [1.99, 1.99], [1.99, 1.99], [\'\',\' 1\']], [, , , , , , , , , , ], [, Inserted, 430, 64624770, [40118], [1], [2590], [SALE], [2.59], [2.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 431, 4, 16560, 4, , , , , ], [, , , , , , , , , , ], [, Inserted, 432, 61684613, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 433, 68634752, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 434, 60664659, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 435, 60694698, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 436, 60614487, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 437, 63644339, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 438, 67674686, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 439, 62684217, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 440, 64614401, 2, , , , , , ], [, , , , , , , , , , ], [, Inserted, 441, 64624770, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 442, 11, 69110, 13, , , , , ], [, , , , , , , , , , ], [, Inserted, 825, 20, Store: 20, , , , , , ], [, , , , , , , , , , ], [, Inserted, 826, 170, Department: 170, , , , , , ], [, , , , , , , , , , ], [, Inserted, 827, 63604808, [40118], [1], [4870], [SALE], [4.87], [4.87], [\'\']], [, , , , , , , , , , ], [, Inserted, 828, 1, 4870, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 829, 280, Department: 280, , , , , , ], [, , , , , , , , , , ], [, Inserted, 830, 69684558, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE], [19.0, -19.0, 5.01], [19.0, -19.0, 5.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 831, 69694158, [40118, 40118, 40118], [1, -1, 1], [19000, -19000, 5010], [SALE, RETURN, SALE], [19.0, -19.0, 5.01], [19.0, -19.0, 5.01], [\'\',\' -1\',\' -1 1\']], [, , , , , , , , , , ], [, Inserted, 832, 2, 10020, 6, , , , , ], [, , , , , , , , , , ], [, Inserted, 833, 685, Department: 685, , , , , , ], [, , , , , , , , , , ], [, Inserted, 834, 62684671, [40118, 40118], [1, -1], [69990, -69990], [SALE, RETURN], [69.99, -69.99], [69.99, -69.99], [\'\',\' -1\']], [, , , , , , , , , , ], [, Inserted, 835, 0, 0, 2, , , , , ], [, , , , , , , , , , ], [, Inserted, 836, 929, Department: 929, , , , , , ], [, , , , , , , , , , ], [, Inserted, 837, 65674532, [40118], [1], [3590], [SALE], [3.59], [3.59], [\'\']], [, , , , , , , , , , ], [, Inserted, 838, 1, 3590, 1, , , , , ], [, , , , , , , , , , ], [, Inserted, 839, 957, Department: 957, , , , , , ], [, , , , , , , , , , ], [, Inserted, 840, 63674861, [40118], [10], [2700], [SALE], [2.7], [2.7], [\'\']], [, , , , , , , , , , ], [, Inserted, 841, 64634429, [40118], [1], [3990], [SALE], [3.99], [3.99], [\'\']], [, , , , , , , , , , ], [, Inserted, 842, 66624458, [40118], [1], [890], [SALE], [0.89], [0.89], [\'\']], [, , , , , , , , , , ], [, Inserted, 843, 12, 7580, 3, , , , , ], [, , , , , , , , , , ], [, Inserted, 844, 63604808, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 845, 69684558, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 846, 69694158, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 847, 65674532, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 848, 63674861, 10, , , , , , ], [, , , , , , , , , , ], [, Inserted, 849, 64634429, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 850, 66624458, 1, , , , , , ], [, , , , , , , , , , ], [, Inserted, 851, 16, 26060, 13, , , , , ]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
		click('BasicInternalFrameTitlePane$NoFocusButton2')

		if window(r'Save Changes to file: ' + commonBits.sampleDir() + 'protoStoreSales7.bin'):
			click('No')
		close()
	close()
